<?php
/*
 * Created on 2011-9-26
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 class ModelBossEntrust extends Model{
 	
 	public function getAllAnalyze(){
 		return 	$this->db->query("select * from ".DB_PREFIX."user_timeline_analyze uta,".DB_PREFIX."verify_credentials vc where uta.user_id=vc.id")->rows;
 	}
 	
 	public function getAnalyzeById($id){
 		return 	$this->db->query("select * from ".DB_PREFIX."user_timeline_analyze uta,".DB_PREFIX."verify_credentials vc where uta.user_id=vc.id and uta.user_id='".$id."'")->row;
 	}
 }
?>
